package com.chunuo.mvc.common;

import lombok.Data;
import sun.plugin2.message.Message;

import javax.xml.transform.Result;

/**
 * 类的作用
 *
 * @author liujiamiao
 * @email 2544296058@qq.com
 * @date 2020-07-04 11:49
 */
public enum ResultCode {

    SUCCESS(200,"成功"),
    ERROR(500,"失败"),
    ERRORToken(401,"用户登录已过期");

    private Integer code;
    private String message;

    ResultCode(Integer code ,String message){
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
